import Vue from 'vue'
import Router from 'vue-router'

import homeRouter from './item/home'
import registerRouter from './item/register'
import personalRouter from './item/personal'
import suggestRouter from './item/suggest'
import voteRouter from './item/vote'
import publicityRouter from './item/publicity'
import accountRouter from './item/account'
import communityRouter from './item/community'
import shareRouter from './item/share'
import smallEstate from './item/smallEstate'
import localeVote from './item/localeVote'

Vue.use(Router)

const router = new Router({
    routes: [
        ...homeRouter,
        ...registerRouter,
        ...personalRouter,
        ...suggestRouter,
        ...voteRouter,
        ...publicityRouter,
        ...accountRouter,
        ...communityRouter,
        ...shareRouter,
        ...smallEstate,
        ...localeVote
    ],
    mode: 'history'
})
export default router